<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>回车光标移动到下一个input框</title>
	<script>
		function focusNextInput(thisInput){
			var inputs = document.getElementsByTagName('input');
			for(var i=0;i<inputs.length;i++){
				if(i==(inputs.length-1)){
					inputs[0].focus();
					break;
				}else if(thisInput==inputs[i]){
					inputs[i+1].focus();
					break;
				}
			}
		}

	</script>
</head>

<body>
	
</body>
</html>